package Agent;

import Agent.Connexion;
import eis.exceptions.ActException;
import eis.iilang.Action;
/**
 * TODO description
 */
public abstract class ActionBehaviour extends jade.core.behaviours.Behaviour {
	
	protected Connexion con;
	protected AgentBase ag;
	
	protected ActionBehaviour(AgentBase ag,Connexion con)
	{
		this.ag  =ag;
		this.con = con;
	}
	
	public void performAction(Action action) throws ActException{
		con.performAction(action);
		ag.setAction();
	}

}